package com.x.mygulimall5.order.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class MqTestListener {
    @RabbitListener(queues="direct1.queues1")
    public void listenDirect1queues1(String msg){
        System.out.println(msg);
    }

    @RabbitListener(queues="direct1.queues2")
    public void listenDirect1queues2(String msg){
        System.out.println(msg);
    }
}
